package com.bby.common.model;

import com.bby.common.config.MongoDateConverter;
import com.bby.common.config.MongoIdConverter;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;

import java.util.Date;
import java.util.List;
@Data
@ToString
@Accessors(chain = true)
public class PmMessage {
    @Id
    String id;
    String from;
    String to;
    String fromName;
    List<String> fileIds;
    String message;
    @JsonFormat( pattern ="yyyy-MM-dd HH:mm:ss", timezone ="GMT+8")
    Date date;
    PermissionDetail detail;
    PmMessageDeal deal;
}
